package com.tuanzi.webtalk.config;

/**
 * 雄关漫道真如铁，而今迈过从头越
 **/

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * websocket配置类
 */

@Configuration
public class WebSocketConfig {

    /**
     * 注入对象ServerEndpointExporter
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }

}
